home *** CD-ROM | disk | FTP | other *** search
- ClickDir, version 0.10
- ======================
-
- The Application
- ---------------
-
- For some reason, everyone seems to want to write an application to set the
- current directory, usually by dragging files to an icon on the icon bar.
- Now, I've never seen the point in this, being quite happy to type the
- directory name in the shell. However, inspiration struck for a new way of
- setting the current directory, and since it was such a small piece of code,
- I wrote it.
-
- What it did was to change the directory *every* time a file or directory was
- double-clicked in a Filer window. Unfortunately, this proved to be less than
- useful, since you could be anywhere when you went into the shell. So, this
- is a new improved version, which has two modes of operation, one shot and
- automatic. Automatic works like the original - the directory is changed on
- every double-click, which is useful for running simple (non-desktop)
- programs from the Desktop. To change the directory in one shot mode, you
- first have to click the ClickDir icon (on the icon bar) - this is useful
- when working in the shell. There is a menu on the icon to switch between
- modes (and quit).
-
- The program starts up in one shot mode (the most useful).
-
- Double-clicking directories will set the current directory to the directory
- clicked, double-clicking any other files will set it to the directory
- containing that file.
-
- The Program
- -----------
-
- The program is written in ARM code. The directory contains the following:
-
- !Boot
- !Help - this file
- !Run
- !RunImage
- !Sprites
- CreateRI - source code
- Templates
-
- Please report any bugs/improvements to me at one of the addresses below.
-
- If anyone finds it useful, I may turn it into a module thus making it a
- little more permanent (in theory, it should also be smaller, but since RMA
- space is very difficult to recover, this is probably a false economy). I
- would prefer to do this myself, so that there can be a definitive version,
- but if you must do it yourself, might I recommend using Richard Lloyd's
- Trashcan module as a base (I probably will).
-
- Finally, here's a quick resume of how it works (in automatic mode):
-
- Repeatedly listen for User Message event
- If Message_Quit, then closedown and quit
- If Message_DataOpen, then use the filename given to set the
- directory. Do *not* reply to the message.
-
- Lewis Gordon, April 1991
-
- Email: L.R.Gordon@ukc.ac.uk (until June '92)
-
- Snail: 4 Beech Way,
- Blackmore End,
- Wheathampstead,
- Herts,
- AL4 8LY
-
- Revision History
- ----------------
-
- 0.01 - version the first.
-
- 0.02 - added bong on startup.
-
- 0.10 - major revision, introduced two modes, and put icon on icon bar, etc.